USE [MyCarat]
GO
/****** Object:  StoredProcedure [dbo].[sp_GetPicByCondition]    Script Date: 06/30/2012 15:16:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

if exists(select * from sysobjects where id=object_id('sp_GetPicByCondition'))
        drop proc sp_GetPicByCondition
GO
create proc [dbo].[sp_GetPicByCondition]

 AS
  
   select    
            imgID  ,
			imgURL
    from pics 

    
    